package test;

import util.UI.SwingUI;

import javax.swing.*;
import java.awt.*;

/**
 * @Auther leiHua
 * @Date 2022/5/8
 * 导航条的制作  ， 调用getJpanelBar获取放在Jpanel里的导航条，
 */
public class AthleteBar {

    public AthleteBar() {
    }


    public JPanel getJPanelBar() {
        JPanel jPanel = new JPanel();

        JMenuBar bar = new JMenuBar();
        // bar.setSize(600,450);
        JMenu index = new JMenu("首页");
        JMenu baoming = new JMenu("报名");
        JMenu my = new JMenu("我的比赛信息");
        JMenu exit = new JMenu("退出");

        Font font = new Font("微软雅黑", Font.BOLD, 22);
        index.setFont(font);
        baoming.setFont(font);
        my.setFont(font);
        exit.setFont(font);


        bar.add(index);
        bar.add(baoming);
        bar.add(my);
        bar.add(exit);
        jPanel.add(bar);
        return jPanel;
    }





}
